home *** CD-ROM | disk | FTP | other *** search
/ Chip 1996 November / Chip 11-96.iso / workshop / howto / cdrom < prev    next >
Text File  |  1996-09-04  |  72KB  |  1,811 lines

  1.   The Linux CD-ROM HOWTO
  2.   Jeff Tranter, jeff_tranter@mitel.com
  3.   v1.8, 10 June 1996
  4.  
  5.   This document describes how to install, configure, and use CD-ROM
  6.   drives under Linux. It lists the supported hardware and answers a num¡
  7.   ber of frequently asked questions. The intent is to bring new users up
  8.   to speed quickly and reduce the amount of traffic in the Usenet news
  9.   groups.
  10.  
  11.   1.  Introduction
  12.  
  13.   This is the Linux CD-ROM HOWTO document. It is intended as a quick
  14.   reference covering everything you need to know to install and
  15.   configure CD-ROM hardware under Linux. Frequently asked questions
  16.   related to CD-ROM are answered, and references are given to other
  17.   sources of information related to CD-ROM applications and technology.
  18.  
  19.   1.1.  Acknowledgments
  20.  
  21.   Much of this information came from the README files provided with the
  22.   Linux kernel source code, the internet alt.cdrom newsgroup FAQ, and
  23.   input from Linux users.
  24.  
  25.   Thanks to the Linuxdoc-SGML package, this HOWTO is available in
  26.   several formats, all generated from a common source file.
  27.  
  28.   1.2.  Revision History
  29.  
  30.      Version 1.0
  31.         First version made publicly available
  32.  
  33.      Version 1.1
  34.         CDU33A is explicitly supported as of 1.1.20 kernel; notes on
  35.         Reveal FX; info on reading audio tracks; info on some alpha
  36.         drivers; added troubleshooting section; a few other minor
  37.         additions
  38.  
  39.      Version 1.2
  40.         ISO-9660 file systems must be mounted read-only starting with
  41.         1.1.33 kernel; clarified that SB16 SCSI is supported and newer
  42.         Aztech drives are not supported; references to photocd and xpcd
  43.         programs; note on new sbpcd auto eject feature
  44.  
  45.      Version 1.3
  46.         Minor change to the way SBPCD eject feature is disabled starting
  47.         with the 1.1.49 kernel; added info on XA discs and how to
  48.         identify them
  49.  
  50.      Version 1.4
  51.         HOWTO now available in other languages; IBM and Longshine drives
  52.         now supported by SBPCD; alpha driver for Aztech drives; CDU-33
  53.         driver no longer auto-probes, supports PhotoCD and audio; more
  54.         than 2 SCSI drives are supported; new driver for IDE; reminder
  55.         to check drive jumpers; can now set SBPCD auto-eject with IOCTL;
  56.         list drivers with multisession support; question on flashing
  57.         light on CDU-33
  58.  
  59.      Version 1.5
  60.         A long overdue update (I've been busy); document placed under
  61.         GPL; info on many new kernel drivers; more info on configuration
  62.         and troubleshooting; lots of HTML links added; many other minor
  63.         changes
  64.  
  65.      Version 1.6
  66.         Added link to eject program; question on file permission patch;
  67.         link to Creative Labs Web site; reference to ATA/EIDE FAQ and
  68.         FTP site; note that many Creative Labs and Mitsumi drives are
  69.         now EIDE; mention Supermount; drives listed as supporting
  70.         digital data are obsolete, refer to cdda2wav; more info on
  71.         writing CDs; multi-disc EIDE drive info; a few typos fixed
  72.  
  73.      Version 1.7
  74.         new kernel version; most README files moved to
  75.         /usr/src/linux/Documentation; some drivers are no longer
  76.         experimental; a few more supported drives; emphasize that most
  77.         drives are now IDE/ATAPI; added questions on Plug and Play
  78.         support and identifying drive speed; vger mailing lists being
  79.         shut down; other miscellaneous minor changes
  80.  
  81.      Version 1.8
  82.         question on why CD-ROM stops working after install; aztcd driver
  83.         now supports two CyCDROM drives; more pleading not to use SBPCD
  84.         driver with IDE drives; some ATAPI multi-disc changer support;
  85.         note on (lack of) support for parallel port drives; latest
  86.         stable kernel is 2.0; other miscellaneous minor changes
  87.  
  88.   1.3.  New Versions Of This Document
  89.  
  90.   New versions of this document will be periodically posted to the
  91.   comp.os.linux.answers newsgroup. They will also be uploaded to various
  92.   anonymous ftp sites that archive such information including
  93.   <ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/>.
  94.  
  95.   Hypertext versions of this and other Linux HOWTOs are available on
  96.   many World-Wide-Web sites, including
  97.   <http://sunsite.unc.edu/mdw/mdw.html>. Most Linux CD-ROM distributions
  98.   include the HOWTOs, often under the  </usr/doc/> directory, and you
  99.   can also buy printed copies from several vendors.
  100.  
  101.   A French translation of this document, by Bruno Cornec
  102.   (cornec@stna7.stna.dgac.fr) is available at
  103.   <ftp://ftp.ibp.fr/pub2/linux/french/docs/HOWTO/>.
  104.  
  105.   A Japanese translation by Itsushi Minoura (minoura@uni.zool.s.u-
  106.   tokyo.ac.jp) is available from <http://yebisu.ics.es.osaka-
  107.   u.ac.jp/linux/>.
  108.  
  109.   If you make a translation of this document into another language, let
  110.   me know and I'll include a reference to it here.
  111.  
  112.   1.4.  Feedback
  113.  
  114.   I rely on you, the users, to make this HOWTO useful. If you have any
  115.   suggestions, corrections, or comments, please send them to me,
  116.   jeff_tranter@mitel.com, and I will try to incorporate them in the next
  117.   revision.
  118.  
  119.   I am also willing to answer general questions on CD-ROM and Linux, as
  120.   best I can. Before doing so, please read all of the information in
  121.   this HOWTO, and send me detailed information about the problem.
  122.  
  123.   If you publish this document on a CD-ROM or in hardcopy form, a
  124.   complimentary copy would be appreciated. Mail me for my postal
  125.   address. Also consider making a donation to the Linux Documentation
  126.   Project to help support free documentation for Linux. Contact the
  127.   Linux HOWTO coordinator, Greg Hankins (gregh@sunsite.unc.edu), for
  128.   more information.
  129.  
  130.   1.5.  Distribution Policy
  131.  
  132.   Copyright (C) 1996 Jeff Tranter.
  133.  
  134.   This HOWTO is free documentation; you can redistribute it and/or
  135.   modify it under the terms of the GNU General Public License as
  136.   published by the Free Software Foundation; either version 2 of the
  137.   License, or (at your option) any later version.
  138.  
  139.   This document is distributed in the hope that it will be useful, but
  140.   without any warranty; without even the implied warranty of
  141.   merchantability or fitness for a particular purpose.  See the GNU
  142.   General Public License for more details.
  143.  
  144.   You can obtain a copy of the GNU General Public License by writing to
  145.   the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
  146.   USA.
  147.  
  148.   2.  CD-ROM Technology
  149.  
  150.   "CD-ROM is read-only memory, and audio compact disc system is
  151.   available as package-media of digital data for those purpose. For
  152.   playing audio CD, please insert Head-phone jack."
  153.   --- from a CD-ROM instruction manual
  154.  
  155.   Don't Panic! The world of CD-ROM technology is not as confusing as
  156.   your instruction manual.
  157.  
  158.   CD-ROM stands for Compact Disc Read-Only Memory, a mass storage medium
  159.   utilizing an optical laser to read microscopic pits on the aluminized
  160.   layer of a polycarbonate disc. The same format is used for audio
  161.   Compact Discs. Because of its high storage capacity, reliability, and
  162.   low cost, CD-ROM has become an increasingly popular storage media.
  163.  
  164.   The storage capacity of a CD-ROM disc is approximately 650 megabytes,
  165.   equivalent to over 500 high density 3.5" floppy disks or roughly
  166.   250,000 typed pages.
  167.  
  168.   First generation drives (known as single speed), provide a transfer
  169.   rate of approximately 150 kilobytes per second; these are now
  170.   generally considered obsolete. Double speed drives (300 kilobytes per
  171.   second) are widely available, and many users are now opting for quad
  172.   speed (600 kilobytes per second) or higher.
  173.  
  174.   Most CD-ROM drives use either the Small Computer Systems Interface
  175.   (SCSI), ATAPI enhanced IDE interface, or a vendor proprietary
  176.   interface. They also typically support playing audio CDs via an
  177.   external headphone jack or line level output. Some CDs also allow
  178.   reading the frames of data from audio CDs in digital form.
  179.  
  180.   CD-ROMs are usually formatted with an ISO-9660 (formerly called High
  181.   Sierra) file system. This format restricts filenames to the MS-DOS
  182.   style (8+3 characters). The Rock Ridge Extensions use undefined fields
  183.   in the ISO-9660 standard to support longer filenames and additional
  184.   Unix style information (e.g. file ownership, symbolic links, etc.).
  185.  
  186.   PhotoCD is a standard developed by Kodak for storing photographic
  187.   images as digital data on a CD-ROM. With appropriate software, you can
  188.   view the images on a computer, manipulate them, or send them to a
  189.   printer. Information can be added to a PhotoCD at a later date; this
  190.   is known as multi-session capability.
  191.  
  192.   CD recorders (CD-R) have recently become available. They use a
  193.   different media and specialized equipment for recording, but the
  194.   resulting disc can be read by any CD-ROM drive.
  195.  
  196.   In the future CD-ROM drive vendors are expected to offer technology
  197.   that will increase storage capacity by an order of magnitude.
  198.  
  199.   3.  Supported Hardware
  200.  
  201.   This section lists the CD-ROM drivers and interfaces that are
  202.   currently supported under Linux. The information here is based on the
  203.   latest stable Linux kernel, which at time of writing was version 2.0.
  204.  
  205.   This information is only valid for Linux on the Intel platform. Some
  206.   information may be applicable to other processor architectures, but I
  207.   have no first hand experience or information.
  208.  
  209.   3.1.  SCSI CD-ROM Drives
  210.  
  211.   SCSI (Small Computer Systems Interface) is a popular format for CD-ROM
  212.   drives. Its chief advantages are a reasonably fast transfer rate,
  213.   multi-device capability, and support on a variety of computer
  214.   platforms. Some disadvantages of SCSI are the need for a relatively
  215.   expensive controller card and cables.
  216.  
  217.   Any SCSI CD-ROM drive with a block size of 512 or 2048 bytes should
  218.   work under Linux; this includes the vast majority of CD-ROM drives on
  219.   the market.
  220.  
  221.   You will also need a supported SCSI controller card; see the SCSI
  222.   HOWTO for more information on interface hardware.
  223.  
  224.   Note that some CD-ROMs include a controller with a modified interface
  225.   that is not fully SCSI compatible (e.g. it may not support adding
  226.   other SCSI devices on the bus). These will most likely not work under
  227.   Linux.
  228.  
  229.   3.2.  Proprietary CD-ROM Drives
  230.  
  231.   Several CD-ROM drives using proprietary interfaces are available; the
  232.   interface is often provided on a sound card. Simple interface cards
  233.   equivalent to that provided on the sound card are also available.
  234.   These drives generally tend to be lower in cost and smaller than SCSI
  235.   drives. Their disadvantages are the lack of standardization and
  236.   expandability.
  237.  
  238.   Note that proprietary interfaces are sometimes erroneously referred to
  239.   as IDE interfaces, because like IDE hard disks, they use a simple
  240.   interface based on the PC/AT bus. To add to the confusion, some
  241.   vendors, most notably Creative Labs, have shipped many different types
  242.   of CD-ROM drives and have offered proprietary, SCSI, and ATAPI
  243.   interfaces on their sound cards.
  244.  
  245.   The table below lists the proprietary CD-ROM drives that are known to
  246.   be supported under Linux. Drivers for additional devices may be
  247.   available in the latest development kernels or as kernel patches. The
  248.   latter can most often be found at
  249.   <ftp://sunsite.unc.edu/pub/Linux/kernel/patches/cdrom/>. Also check
  250.   the README files included with the kernel distribution, usually
  251.   installed /usr/src/linux/Documentation/cdrom/, for the latest
  252.   information.
  253.  
  254.                   Proprietary CD-ROM Drives
  255.  
  256.   Vendor          Model           Kernel Driver   Notes
  257.   ------          -----           -------------   --------
  258.   Panasonic       CR-521          sbpcd           Note 1
  259.   Panasonic       CR-522          sbpcd           Note 1
  260.   Panasonic       CR-523          sbpcd           Note 1
  261.   Panasonic       CR-562          sbpcd           Note 1
  262.   Panasonic       CR-563          sbpcd           Note 1
  263.   Creative Labs   CD-200          sbpcd
  264.   IBM             External ISA    sbpcd           Note 2
  265.   Longshine       LCS-7260        sbpcd
  266.   Teac            CD-55A          sbpcd
  267.   Sony            CDU-31A         cdu31a
  268.   Sony            CDU-33A         cdu31a
  269.   Sony            CDU-535         sonycd535       Note 3
  270.   Sony            CDU-531         sonycd535
  271.   Aztech          CDA268-01A      aztcd
  272.   Orchid          CDS-3110        aztcd
  273.   Okano/Wearnes   CDD110          aztcd
  274.   Conrad          TXC             aztcd
  275.   CyCDROM         CR520ie         aztcd
  276.   CyCDROM         CR940ie         aztcd
  277.   GoldStar        R420            gscd            Note 4
  278.   Philips/LMS     CM206           cm206           Note 5
  279.   Mitsumi         CRMC LU005S     mcd/mcdx        Note 6, 7
  280.   Mitsumi         FX001           mcd/mcdx        Note 6, 7
  281.   Optics Storage  Dolphin 8000AT  optcd
  282.   Lasermate       CR328A          optcd
  283.   Sanyo           H94A            sjcd
  284.   various         various         isp16           Note 8
  285.  
  286.   Notes:
  287.  
  288.   1. These drives may be sold under the names Creative Labs, Panasonic,
  289.      Matsushita, or Kotobuki.
  290.   2. This drive is the same as a Panasonic CR-562.
  291.  
  292.   3. May also be sold under the Procomm name.
  293.  
  294.   4. May also be sold as part of a Reveal Multimedia Kit.
  295.  
  296.   5. The Philips CM205 is not supported by this driver, but there is a
  297.      separate alpha release driver available from ftp://sunsite.unc.edu
  298.      in /pub/Linux/kernel/patches/cdrom/lmscd0.4.tar.gz
  299.  
  300.   6. May also be sold under the Radio Shack name.
  301.  
  302.   7. There are two drivers available. "mcd" is the original one, and
  303.      "mcdx" is a new experimental driver with more features (but
  304.      possibly less stable).
  305.  
  306.   8. This driver works with CD-ROM drives that are attached to the
  307.      interface on an ISP16, MAD16 or Mozart sound card.
  308.  
  309.   If a drive listed here is not supported by your kernel, you probably
  310.   need to upgrade to a newer version.
  311.  
  312.   If your drive is not one of the models listed here, particularly if it
  313.   was bought recently and is quad speed or faster, it probably uses the
  314.   IDE/ATAPI interface listed in the next section. The most common error
  315.   among Linux CD-ROM users is to assume that any drive connected to a
  316.   SoundBlaster card should use the SBPCD driver. Creative Labs and most
  317.   other vendors are no longer selling proprietary interface drives, they
  318.   are following the standard ATAPI/IDE interface.
  319.  
  320.   3.3.  ATAPI CD-ROM Drives
  321.  
  322.   ATAPI (ATA Packet Interface) is a protocol for controlling mass
  323.   storage devices, similar to SCSI. It builds on the ATA (AT Attachment)
  324.   interface, the official ANSI standard name for for the IDE interface
  325.   developed for hard disk drives. ATAPI is commonly used for hard disks,
  326.   CD-ROM drives, tape drives, and other devices.  Currently the most
  327.   popular type of interface, it offers most of the functionality of
  328.   SCSI, without the need for an expensive controller or cables.
  329.  
  330.   The Linux kernel has a device driver that should work with any ATAPI
  331.   compliant CD-ROM drive. Vendors shipping compatible drives include
  332.   Aztech, Mitsumi, NEC, Sony, Creative Labs, and Vertos. If you have
  333.   recently purchased a CD-ROM drive, especially if it is quad speed or
  334.   faster, it is almost guaranteed to be IDE/ATAPI.
  335.  
  336.   3.4.  Parallel Port Drives
  337.  
  338.   Some vendors sell CD-ROM drives that attach to the PC parallel port.
  339.   The standard Linux kernel does not support these drives, and I am not
  340.   aware of anyone working on drivers.
  341.  
  342.   4.  Installation
  343.  
  344.   Installation of a CD-ROM under Linux consists of these steps:
  345.  
  346.   1. Installing the hardware.
  347.  
  348.   2. Configuring and building the Linux kernel.
  349.  
  350.   3. Creating device files and setting boot time parameters
  351.  
  352.   4. Booting the Linux kernel.
  353.  
  354.   5. Mounting the media.
  355.  
  356.   The next sections will cover each of these steps in detail.
  357.  
  358.   4.1.  Installing the Hardware
  359.  
  360.   Follow the manufacturer's instructions for installing the hardware or
  361.   have your dealer perform the installation. The details will vary
  362.   depending on whether the drive is internal or external and on the type
  363.   of interface used. There are no special installation requirements for
  364.   Linux. You may need to set jumpers on the drive and/or interface card
  365.   for correct operation; some of the kernel drivers include README files
  366.   that include this information.
  367.  
  368.   As explained in the file ide-cd, ATAPI CD-ROMS should be jumpered as
  369.   "single" or "master", and not "slave" when only one IDE device is
  370.   attached to an interface (this restriction is no longer enforced with
  371.   recent kernels).
  372.  
  373.   4.2.  Configuring and Building the Kernel
  374.  
  375.   When initially installing Linux from CD-ROM you will likely be using a
  376.   boot and/or root disk provided as part of a Linux distribution. If
  377.   possible, you should choose a boot disk with the kernel driver for
  378.   your CD-ROM device type. If you cannot find a boot disk with the
  379.   necessary CD-ROM driver, you have several options:
  380.  
  381.   1. install over a network
  382.  
  383.   2. boot DOS, and install the Linux files onto your hard disk
  384.  
  385.   3. boot DOS, and create a set of floppies to install Linux
  386.  
  387.   4. find someone who can build you a boot disk with the needed CD-ROM
  388.      driver
  389.  
  390.   The Linux Installation HOWTO
  391.   <http://sunsite.unc.edu/mdw/HOWTO/Installation-HOWTO.html> has more
  392.   information on installing Linux. If you purchased Linux on CD-ROM, it
  393.   likely also came with some installation instructions (that little
  394.   booklet inside the jewel case, and/or files on the CD).
  395.  
  396.   Once Linux has initially been installed, most users will want to
  397.   compile their own kernel, usually for one of these reasons:
  398.  
  399.   ╖  to support a CD-ROM drive or other hardware
  400.  
  401.   ╖  to upgrade to a newer kernel release
  402.  
  403.   ╖  to free up memory resources by minimizing the size of the kernel
  404.  
  405.   The Linux Kernel HOWTO <http://sunsite.unc.edu/mdw/HOWTO/Kernel-
  406.   HOWTO.html> should be consulted for the details of building a kernel.
  407.   I will just mention here some issues that are specific to CD-ROM
  408.   drives.
  409.  
  410.   Obviously, you need to compile in support for your CD-ROM drive when
  411.   you do a "make config".
  412.  
  413.   If you have an ATAPI CD-ROM drive, you need to answer yes to the
  414.   questions:
  415.  
  416.        Enhanced IDE/MFM/RLL disk/cdrom/tape support (CONFIG_BLK_DEV_IDE) [Y/n/?]
  417.        Include IDE/ATAPI CDROM support (CONFIG_BLK_DEV_IDECD) [Y/n/?]
  418.  
  419.   For SCSI CD-ROM drives, enable these options:
  420.  
  421.        SCSI support (CONFIG_SCSI) [Y/n/m/?]
  422.        SCSI CD-ROM support (CONFIG_BLK_DEV_SR) [Y/n/m/?]
  423.  
  424.   Also enable support for your SCSI host adaptor when prompted, e.g.
  425.  
  426.        Adaptec AHA152X support (CONFIG_SCSI_AHA152X) [Y/n/m/?]
  427.  
  428.   For proprietary interface CD-ROM drives, enable the appropriate
  429.   driver. You can use the table listed previously to determine the
  430.   driver to use for your model.
  431.  
  432.   Virtually all CD-ROMs use the ISO-9660 file system, so you must also
  433.   enable:
  434.  
  435.        ISO9660 cdrom filesystem support (CONFIG_ISO9660_FS) [Y/n/m/?]
  436.  
  437.   Although not needed for CD-ROM operation, if you have a sound card
  438.   that is supported under Linux you might want to enable and configure
  439.   the kernel sound driver at this time as well. The Sound HOWTO
  440.   <http://sunsite.unc.edu/mdw/HOWTO/Sound-HOWTO.html> can be a useful
  441.   reference here.
  442.  
  443.   You should then follow the usual procedure for building the kernel and
  444.   installing it. Don't boot with the new kernel until you create the
  445.   device files and set up any boot time parameters as described in the
  446.   next section.
  447.  
  448.   The ISO-9660 filesystem and almost all of the CD-ROM drivers can be
  449.   built as loadable kernel modules. This scheme allows the kernel
  450.   drivers to be loaded and unloaded without rebooting the kernel,
  451.   freeing up memory. I recommend you get your CD-ROM installation
  452.   running using compiled-in drivers first. How to do use modules is
  453.   described in the modules documentation and the Kernel HOWTO
  454.   <http://sunsite.unc.edu/mdw/HOWTO/Kernel-HOWTO.html>.
  455.  
  456.   If a drive type listed here is not supported by your kernel, you
  457.   likely need to upgrade to a newer version.
  458.  
  459.   It is possible that you need to use a driver that is distributed
  460.   separately from the kernel source code. This usually involves patching
  461.   the kernel. Again, the Kernel HOWTO
  462.   <http://sunsite.unc.edu/mdw/HOWTO/Kernel-HOWTO.html> explains how to
  463.   do this.
  464.  
  465.   Note that there is a menu-based kernel configuration program invoked
  466.   by "make menuconfig" and an X11-based graphical configuration invoked
  467.   as "make xconfig". All three configuration methods offer on-line help.
  468.  
  469.   4.3.  Creating Device Files and Setting Boot Time Parameters
  470.  
  471.   The kernel uses device files to identify which device driver to use.
  472.   If you are running a standard Linux distribution you may have created
  473.   the necessary device files during installation. Under Slackware Linux,
  474.   for example, there is a menu-based setup tool that includes CD-ROM
  475.   setup, and most systems have a /dev/MAKEDEV script. If you don't use
  476.   these methods, you can use the more manual procedure listed in this
  477.   section. Even if you use either of these methods, it is recommended
  478.   that you at least verify the device files against the information in
  479.   this section.
  480.  
  481.   You create the device file by running the shell commands indicated for
  482.   your drive type. This should be done as user root. Note that some
  483.   Linux distributions may use slightly different CD-ROM device names
  484.   from those listed here.
  485.  
  486.   It is recommended that you also create a symbolic link to the CD-ROM
  487.   device to make it easier to remember. For example, for a Panasonic CD-
  488.   ROM drive, the link would be created using
  489.  
  490.        % ln -s /dev/sbpcd /dev/cdrom
  491.  
  492.   If you want to play audio CDs, you will need to set the protection on
  493.   the device file (the real file, not the symbolic link to it) to allow
  494.   all users to read and write, e.g.
  495.  
  496.        % chmod 666 /dev/sbpcd
  497.        % ls -l /dev/sbpcd
  498.        brw-rw-rw-   1 root     disk      25,   0 Jul 18  1994 /dev/sbpcd
  499.  
  500.   When booting Linux, the device drivers attempt to determine whether
  501.   the appropriate devices are present, typically by probing specific
  502.   addresses. Many of the drivers auto-probe at several addresses, but
  503.   because of differences in configuration, possible device conflicts,
  504.   and hardware limitations, the drivers sometimes need help identifying
  505.   the addresses and other parameters. Most drivers support an option on
  506.   the kernel command line to pass this information to the device driver.
  507.   This can be done interactively, or more commonly, configured into your
  508.   boot loader. With LILO, for example, you would add an append command
  509.   such as the following to your /etc/lilo.conf file:
  510.  
  511.        append = "sbpcd=0x230,SoundBlaster"
  512.  
  513.   See the LILO documentation for more information.
  514.  
  515.   In the next section I discuss issues specific to individual device
  516.   drivers, including device files, boot parameters, and the capabilities
  517.   of the different drivers. You probably only need to read the section
  518.   relevant to your drive type.
  519.  
  520.   4.3.1.  Sbpcd Driver
  521.  
  522.          Principal author: Eberhard Moenkeberg (emoenke@gwdg.de)
  523.     Multi-session support: yes (but not all drives)
  524.    Multiple drive support: yes
  525.   Loadable module support: yes
  526.      Reading audio frames: yes (CR-562, CR-563, CD-200 only)
  527.              Auto-probing: yes
  528.               Device file: /dev/sbpcd, major 25
  529.        Configuration file: sbpcd.h
  530.      Kernel config option: Matsushita/Panasonic CDROM support?
  531.               README file: ide-cd
  532.  
  533.   This driver accepts a kernel command line of the form:
  534.  
  535.        sbpcd=<io-address>,<interface-type>
  536.  
  537.   where the first parameter is the base address of the device (e.g.
  538.   0x230), and <interface-type> is one of "SoundBlaster", "LaserMate", or
  539.   "SPEA". See the file sbpcd.h for hints on what interface type to use.
  540.   Using sbpcd=0 disables auto-probing, rendering the driver useless.
  541.  
  542.   The device file can be created using:
  543.  
  544.        % mknod /dev/sbpcd b 25 0
  545.  
  546.   Up to four drives per controller are supported. The next three drives
  547.   on the first controller would use minor device numbers 1 through 3.
  548.   If you have more than one controller, create devices with major
  549.   numbers 26, 27, and 28, up to a maximum of 4 controllers (this is 16
  550.   CD-ROM drives in total; hopefully enough for most users :-).
  551.  
  552.   See the file sbpcd for more information on this driver.
  553.  
  554.   If you recently bought a CD-ROM drive, don't assume that if it
  555.   connects to a SoundBlaster card it should use this kernel driver. Most
  556.   CD-ROM drives being sold by Creative Labs are now EIDE/ATAPI drives.
  557.   Please don't bug the author with questions about using this driver
  558.   with IDE drives. I quote from the README file:
  559.  
  560.   sbpcd really, really is NOT for ANY IDE/ATAPI drive!
  561.   Not even if you have an "original" SoundBlaster card with an IDE interface!
  562.   So, you better have a look into README.ide if your port address is 0x1F0,
  563.   0x170, 0x1E8, 0x168 or similar.
  564.   I get tons of mails from IDE/ATAPI drive users - I really can't continue
  565.   any more to answer them all. So, if your drive/interface information sheets
  566.   mention "IDE" (primary, secondary, tertiary, quaternary) and the DOS driver
  567.   invoking line within your CONFIG.SYS is using an address below 0x230:
  568.   DON'T ROB MY LAST NERVE - jumper your interface to address 0x170 and IRQ 15
  569.   (that is the "secondary IDE" configuration), set your drive to "master" and
  570.   use ide-cd as your driver. If you do not have a second IDE hard disk, use the
  571.   LILO commands
  572.      hdb=noprobe hdc=cdrom
  573.   and get lucky.
  574.   To make it fully clear to you: if you mail me about IDE/ATAPI drive problems,
  575.   my answer is above, and I simply will discard your mail, hoping to stop the
  576.   flood and to find time to lead my 12-years old son towards happy computing.
  577.  
  578.   4.3.2.  Sonycdu535 Driver
  579.  
  580.          Principal author: Ken Pizzini (ken@halcyon.com)
  581.     Multi-session support: no
  582.    Multiple drive support: no
  583.   Loadable module support: yes
  584.      Reading audio frames: no
  585.              Auto-probing: no
  586.               Device file: /dev/sonycd535, major 24
  587.        Configuration file: sonycd535.h
  588.      Kernel config option: Sony CDU535 CDROM support?
  589.               README file: sonycd535
  590.  
  591.   This driver accepts a kernel command line of the form:
  592.  
  593.        sonycd535=<io-address>
  594.  
  595.   where <io-address> is the base address of the controller (e.g. 0x320).
  596.   Alternatively you can set the address in the file sonycd535.h and
  597.   compile it in.
  598.  
  599.   The device file can be created using:
  600.  
  601.        % mknod /dev/sonycd535 b 24 0
  602.  
  603.   Some Linux distributions use /dev/sonycd for this device.  Older
  604.   versions of the driver used major device number 21; make sure your
  605.   device file is correct.
  606.  
  607.   This driver was previously distributed as a patch but is now part of
  608.   the standard kernel. See the file sonycd535 for more information on
  609.   this driver.
  610.  
  611.   4.3.3.  Cdu31a Driver
  612.  
  613.          Principal author: Corey Minyard (minyard@-rch.cirr.com)
  614.     Multi-session support: yes
  615.    Multiple drive support: no
  616.   Loadable module support: yes
  617.      Reading audio frames: yes
  618.              Auto-probing: no
  619.               Device file: /dev/cdu31a, major 15
  620.        Configuration file: cdu31a.h
  621.      Kernel config option: Sony CDU31A/CDU33A CDROM support?
  622.               README file: cdu31a
  623.  
  624.   This driver accepts a kernel command line of the form:
  625.  
  626.        cdu31a=<io-address>,<interrupt>,PAS
  627.  
  628.   The first number is the I/O base address of the card (e.g. 0x340). The
  629.   second is the interrupt number to use (0 means to use polled i/o). The
  630.   optional third parameter should be "PAS" if the drive is connected to
  631.   a Pro-Audio Spectrum 16 sound card, otherwise left blank.
  632.  
  633.   The device file can be created using:
  634.  
  635.        % mknod /dev/cdu31a b 15 0
  636.  
  637.   See the file cdu31a for more information on this driver.
  638.  
  639.   Also see the Web page put together by Jeffrey Oxenreider
  640.   (zureal@infinet.com) that covers a lot of common problems with these
  641.   drives. It can be found at
  642.   <http://www.infinet.com/~zureal/cdu31a.html>.
  643.  
  644.   4.3.4.  Aztcd Driver
  645.  
  646.          Principal author: Werner Zimmermann (zimmerma@rz.fht-esslingen.de)
  647.     Multi-session support: yes
  648.    Multiple drive support: no
  649.   Loadable module support: yes
  650.      Reading audio frames: no
  651.              Auto-probing: no
  652.               Device file: /dev/aztcd0, major 29
  653.        Configuration file: aztcd.h
  654.      Kernel config option: Aztech/Orchid/Okano/Wearnes (non IDE) CDROM support?
  655.               README file: aztcd
  656.  
  657.   This driver accepts a kernel command line of the form:
  658.  
  659.        aztcd=<io-address>
  660.  
  661.   where the parameter is the I/O base address of the card (e.g. 0x340).
  662.  
  663.   The device file can be created using:
  664.  
  665.        % mknod /dev/aztcd0 b 29 0
  666.  
  667.   See the file aztcd for more information on this driver.
  668.  
  669.   4.3.5.  Gscd Driver
  670.  
  671.          Principal author: Oliver Raupach (raupach@nwfs1.rz.fh-hannover.de)
  672.     Multi-session support: no
  673.    Multiple drive support: no
  674.   Loadable module support: yes
  675.      Reading audio frames: no
  676.              Auto-probing: no
  677.               Device file: /dev/gscd0, major 16
  678.        Configuration file: gscd.h
  679.      Kernel config option: Goldstar R420 CDROM support?
  680.               README file: gscd
  681.  
  682.   This driver accepts a kernel command line of the form:
  683.  
  684.        gscd=<io-address>
  685.  
  686.   specifying the I/O base address of the card (e.g. 0x340).
  687.  
  688.   The device file can be created using:
  689.  
  690.        % mknod /dev/gscd0 b 16 0
  691.  
  692.   See the file gscd and the World-Wide Web site <http://linux.rz.fh-
  693.   hannover.de/~raupach> for more information on this driver.
  694.  
  695.   4.3.6.  Mcd Driver
  696.  
  697.          Principal author: Martin  (martin@bdsi.com)
  698.       Multi-session support: no
  699.    Multiple drive support: no
  700.   Loadable module support: yes
  701.      Reading audio frames: no
  702.              Auto-probing: no
  703.               Device file: /dev/mcd, major 23
  704.        Configuration file: mcd.h
  705.      Kernel config option: Standard Mitsumi CDROM support?
  706.               README file: mcd
  707.  
  708.   This is the older driver for Mitsumi drivers that has been available
  709.   for some time. You might want to try the newer mcdx driver, which has
  710.   some new features but is still considered experimental.
  711.  
  712.   This driver accepts a kernel command line of the form:
  713.  
  714.        mcd=<io-address>,<irq>
  715.  
  716.   specifying the I/O base address of the card (e.g. 0x340) and the IRQ
  717.   request number used.
  718.  
  719.   The device file can be created using:
  720.  
  721.        % mknod /dev/mcd b 23 0
  722.  
  723.   See the file mcd for more information on this driver.
  724.  
  725.   4.3.7.  Mcdx Driver
  726.  
  727.          Principal author: Heiko Schlittermann
  728.     Multi-session support: yes
  729.    Multiple drive support: yes
  730.   Loadable module support: yes
  731.      Reading audio frames: no (not supported by hardware)
  732.              Auto-probing: no
  733.               Device file: /dev/mcdx0, major 20
  734.        Configuration file: mcdx.h
  735.      Kernel config option: Experimental Mitsumi support?
  736.               README file: mcdx
  737.  
  738.   This is a new and currently experimental driver for Mitsumi drivers.
  739.   The older and possibly more stable mcd driver is still available.
  740.  
  741.   This driver accepts a kernel command line of the form:
  742.  
  743.        mcdx=<io-address>,<irq>
  744.  
  745.   specifying the I/O base address of the card (e.g. 0x340) and the IRQ
  746.   request number used.
  747.  
  748.   The device file can be created using:
  749.  
  750.        % mknod /dev/mcdx0 b 20 0
  751.  
  752.   If you recently bought a Mitsumi CD-ROM drive, don't assume that it
  753.   should use this kernel driver. Some Mitsumi models are now EIDE/ATAPI
  754.   drives and should use the idecd kernel driver.
  755.  
  756.   See the file mcdx for more information on this driver.
  757.  
  758.   4.3.8.  Cm206 Driver
  759.  
  760.          Principal author: David A. van Leeuwen (david@tm.tno.)
  761.     Multi-session support: yes
  762.    Multiple drive support: no
  763.   Loadable module support: yes
  764.      Reading audio frames: no
  765.              Auto-probing: yes
  766.               Device file: /dev/cm206cd, major 32
  767.        Configuration file: cm206.h
  768.      Kernel config option: Philips/LMS CM206 CDROM support?
  769.               README file: cm206
  770.  
  771.   The driver accepts a kernel command line of the form:
  772.  
  773.   cm206=<io-address>,<interrupt>
  774.  
  775.   where the first number is the I/O base address of the card (e.g.
  776.   0x340). The second is the interrupt channel.
  777.  
  778.   The device file can be created using:
  779.  
  780.        % mknod /dev/cm206cd b 32 0
  781.  
  782.   See the file cm206 for more information on this driver.
  783.  
  784.   4.3.9.  Optcd Driver
  785.  
  786.          Principal author: Leo Spiekman (spiekman@dutette.et.tudelft.nl)
  787.     Multi-session support: yes
  788.    Multiple drive support: no
  789.   Loadable module support: yes
  790.      Reading audio frames: no
  791.              Auto-probing: no
  792.               Device file: /dev/optcd0, major 17
  793.        Configuration file: optcd.h
  794.      Kernel config option: Experimental Optics Storage ... CDROM support?
  795.               README file: optcd
  796.  
  797.   The driver accepts a kernel command line of the form
  798.  
  799.        optcd=<io-address>
  800.  
  801.   to specify the I/O base address of the card (e.g. 0x340).
  802.  
  803.   The device file can be created using:
  804.  
  805.        % mknod /dev/optcd0 b 17 0
  806.  
  807.   See the file optcd for more information on this driver.
  808.  
  809.   4.3.10.  Sjcd Driver
  810.  
  811.          Principal author: Vadim V. Model (vadim@rbrf.msk.su)
  812.     Multi-session support: no
  813.    Multiple drive support: no
  814.   Loadable module support: yes
  815.      Reading audio frames: no
  816.              Auto-probing: no
  817.               Device file: /dev/sjcd, major 18
  818.        Configuration file: sjcd.h
  819.      Kernel config option: Experimental Sanyo H94A CDROM support?
  820.               README file: sjcd
  821.  
  822.   The driver accepts a kernel command line of the form:
  823.  
  824.        sjcd=<io-address>,<interrupt>,<dma>
  825.  
  826.   indicating the base address, interrupt, and DMA channel to be used
  827.   (e.g. sjcd=0x340,10,5).
  828.  
  829.   The device file can be created using:
  830.  
  831.        % mknod /dev/sjcd b 18 0
  832.  
  833.   See the file sjcd for more information on this driver.
  834.  
  835.   4.3.11.  SCSI Driver
  836.  
  837.          Principal author: David Giller
  838.     Multi-session support: yes (depending on drive)
  839.    Multiple drive support: yes
  840.   Loadable module support: yes
  841.      Reading audio frames: yes (depending on drive)
  842.              Auto-probing: yes
  843.               Device file: /dev/scd0, major 11
  844.        Configuration file: cdrom.h
  845.      Kernel config option: SCSI CDROM support?
  846.               README file: none
  847.  
  848.   There are kernel command line option specific to each type of SCSI
  849.   controller. See the SCSI HOWTO for more information.
  850.  
  851.   Multiple drives are supported (up to the limit of the maximum number
  852.   of devices on the SCSI bus). Create device files with major number 11
  853.   and minor numbers starting at zero:
  854.  
  855.        % mknod /dev/scd0 b 11 0
  856.        % mknod /dev/scd1 b 11 1
  857.  
  858.   4.3.12.  IDECD Driver
  859.  
  860.          Principal author: Scott Snyder (snyder@fnald0.fnal.gov)
  861.     Multi-session support: yes
  862.    Multiple drive support: yes
  863.   Loadable module support: no
  864.      Reading audio frames: yes (on supported drives)
  865.              Auto-probing: yes
  866.               Device file: /dev/hd{b,c},  major 22
  867.        Configuration file: cdrom.h
  868.      Kernel config option: Include support for IDE/ATAPI CDROMs?
  869.               README file: ide-cd
  870.  
  871.   This is the driver for ATAPI CD-ROMS. The driver accepts a kernel
  872.   command line of the form
  873.  
  874.        hdx=cyls,heads,sects,wpcom,irq
  875.          or
  876.        hdx=cdrom
  877.  
  878.   where hdx can be any of {hda,hdb,hdc,hdd}, or simply hd, for the
  879.   "next" drive in sequence. Only the first three parameters are required
  880.   (cyls,heads,sects). For example hdc=1050,32,64 hdd=cdrom.
  881.  
  882.   Getting the IDE driver to recognize your CD-ROM drive can be tricky,
  883.   especially if you have more than 2 devices or more than one IDE
  884.   controller. Usually all that is required is to pass the right command
  885.   line options from LILO. The file  </usr/src/linux/Documentation/ide-
  886.   cd> explains how to do this. Read it carefully.
  887.  
  888.   Recent Linux kernels have better support for multiple IDE devices. If
  889.   you have problems with an older kernel, upgrading may help.
  890.  
  891.   4.4.  Booting the Linux Kernel
  892.  
  893.   You can now reboot with the new kernel. Watch for a message such as
  894.   the following indicating that the CD-ROM has been found by the device
  895.   driver (the message will vary depending on the drive type):
  896.  
  897.        SBPCD: Trying to detect a SoundBlaster CD-ROM drive at 0x230.
  898.        SBPCD: - Drive 0: CR-562-x (0.76)
  899.        SBPCD: 1 SoundBlaster CD-ROM drive(s) at 0x0230.
  900.        SBPCD: init done.
  901.  
  902.   If the bootup messages scroll by too quickly to read, you should be
  903.   able to retrieve them using dmesg or tail /var/adm/messages.
  904.  
  905.   If the drive is not found, then a problem has occurred, See the
  906.   section on troubleshooting.
  907.  
  908.   4.5.  Mounting, Unmounting, and Ejecting Devices
  909.  
  910.   To mount a CD-ROM, insert a disc in the drive, and run the mount
  911.   command as root (this assumes you created a symbolic link to your
  912.   device file as recommended above and that an empty directory /mnt
  913.   exists):
  914.  
  915.        % mount -t iso9660 -r /dev/cdrom /mnt
  916.  
  917.   The CD can now be accessed under the directory /mnt. Note that /mnt is
  918.   commonly used as a temporary mount point; a more suitable name for a
  919.   permanent installation might be something like /cdrom. There are other
  920.   options to the mount command that you may wish to use; see the
  921.   mount(8) man page for details.
  922.  
  923.   You can add an entry to /etc/fstab to automatically mount a CD-ROM
  924.   when Linux boots or to specify parameters to use when it is mounted;
  925.   see the fstab(5) man page.
  926.  
  927.   Note that to play audio CDs you should not try to mount them.
  928.  
  929.   To unmount a CD-ROM, use the umount command as root:
  930.  
  931.        % umount /mnt
  932.  
  933.   The disc can only be unmounted if no processes are currently accessing
  934.   the drive (including having their default directory set to the mounted
  935.   drive). You can then eject the disc. Most drives have an eject button;
  936.   there is also a standalone eject program that allows ejecting CD-ROMs
  937.   under software control.
  938.  
  939.   Note that you should not eject a disc while it is mounted (this may or
  940.   may not be possible depending on the type of drive). The sbpcd driver
  941.   can automatically eject a CD-ROM when it is unmounted and insert the
  942.   CD tray when a disc is mounted (you can turn this feature off when
  943.   compiling the kernel or by using a software command).
  944.  
  945.   Its possible that after playing an audio CD you may not be able to
  946.   mount a CD-ROM. You need to send a CD audio "stop" command (using a CD
  947.   player program) before trying the mount. This problem only appears to
  948.   occur with the SBPCD driver.
  949.  
  950.   Stephen Tweedie (sct@dcs.ed.ac.uk) has written the Supermount package
  951.   which provides transparent mounting of removable media including CD-
  952.   ROM. You can find it at
  953.   <ftp://sunsite.unc.edu/pub/linux/patches/diskdrives/>.
  954.  
  955.   4.6.  Troubleshooting
  956.  
  957.   If you still encounter problems after following the instructions in
  958.   the HOWTO, here are some things to check. The checks are listed in
  959.   increasing order of complexity. If a check fails, solve the problem
  960.   before moving to the next stage.
  961.   4.6.1.  Step 1: Make sure you are really running the kernel you com¡
  962.   piled
  963.  
  964.   You can check the date stamp on the kernel to see if you are running
  965.   the one that you compiled with CD-ROM support. You can do this with
  966.   the uname command:
  967.  
  968.        % uname -a
  969.        Linux fizzbin 2.0.0 #1 Fri May 17 17:35:40 EDT 1996 i386
  970.  
  971.   or by displaying the file /proc/version:
  972.  
  973.        % cat /proc/version
  974.        Linux version 2.0.0 (root@fizzbin) (gcc version 2.7.0) #1 Fri May 17 17:35:40 EDT 1996
  975.  
  976.   If the date stamp doesn't seem to match when you compiled the kernel,
  977.   then you are running an old kernel. Did you really reboot? If you use
  978.   LILO, did you re-install it (typically by running /etc/lilo/install)?
  979.   If booting from floppy, did you create a new boot floppy and use it
  980.   when booting?
  981.  
  982.   4.6.2.  Step 2: Make sure the proper kernel drivers are compiled in
  983.  
  984.   You can see what drivers are compiled in by looking at /proc/devices:
  985.  
  986.        % cat /proc/devices
  987.        Character devices:
  988.         1 mem
  989.         4 tty
  990.         5 cua
  991.         6 lp
  992.        14 sound
  993.        15 Joystick
  994.  
  995.        Block devices:
  996.         2 fd
  997.         3 hd
  998.        25 sbpcd
  999.  
  1000.   First look for your CD-ROM device driver. These are all block devices,
  1001.   in this case we can see that the sbpcd driver was present.
  1002.  
  1003.   Also make sure that ISO-9660 filesystem support was compiled in, by
  1004.   looking at /proc/filesystems:
  1005.  
  1006.   % cat /proc/filesystems
  1007.           ext2
  1008.           msdos
  1009.   nodev   proc
  1010.           iso9660
  1011.  
  1012.   You can also see what i/o port addresses are being used by a driver
  1013.   with the file /proc/ioports:
  1014.  
  1015.        howto % cat /proc/ioports
  1016.         ...
  1017.        0230-0233 : sbpcd
  1018.         ...
  1019.  
  1020.   If any of the drivers you thought you compiled in are not displayed,
  1021.   then something went wrong with the kernel configuration or build.
  1022.   Start the installation process again, beginning with configuration and
  1023.   building of the kernel.
  1024.  
  1025.   4.6.3.  Step 3: Did the kernel detect your drive during booting?
  1026.  
  1027.   Make sure that the CD-ROM device was detected when the kernel booted.
  1028.   You should have seen a message on bootup. If the messages scrolled off
  1029.   the screen, you can usually recall them using the dmesg command:
  1030.  
  1031.        % dmesg
  1032.  
  1033.   or
  1034.  
  1035.        % tail /var/adm/messages
  1036.  
  1037.   If your drive was not found then something is wrong. Make sure it is
  1038.   powered on and all cables are connected. If your drive has hardware
  1039.   jumpers for addressing, check that they are set correctly (e.g. drive
  1040.   0 if you have only one drive). ATAPI CD-ROMS must be jumpered as
  1041.   "single" or "master", and not "slave" when only one IDE device is
  1042.   attached to an interface. If the drive works under DOS then you can be
  1043.   reasonably confident that the hardware is working.
  1044.  
  1045.   Many kernel drivers using auto-probing, but some do not, and in any
  1046.   case the probing is not always reliable. Use the kernel command line
  1047.   option listed for your kernel driver type. You may want to try several
  1048.   different values if you are not sure of the i/o address or other
  1049.   parameters. LILO can be (and usually is) configured to allow you to
  1050.   enter the parameters manually when booting.
  1051.  
  1052.   Another possibility is that you used the wrong kernel driver for your
  1053.   CD-ROM driver. Some documentation may refer to proprietary interfaces
  1054.   as IDE, leading some to mistakenly believe they are ATAPI drives.
  1055.  
  1056.   Another possibility is that your drive (or interface card) is one of
  1057.   the "compatible" type that requires initialization by the DOS driver.
  1058.   Try booting DOS and loading the vendor supplied DOS device driver.
  1059.   Then soft boot Linux using Control-Alt-Delete.
  1060.  
  1061.   If your drive is not listed in this document, it is possible that
  1062.   there are no drivers for it available under Linux. You can check with
  1063.   some of the references listed at the end of this document for
  1064.   assistance.
  1065.  
  1066.   4.6.4.  Step 4: Can you read data from the drive?
  1067.  
  1068.   Try reading from the CD-ROM drive. Typing the following command should
  1069.   cause the drive activity light (if present) to come on and no errors
  1070.   should be reported. Use whatever device file is appropriate for your
  1071.   drive and make sure a CD-ROM is inserted; use Control-C to exit.
  1072.  
  1073.        dd if=/dev/cdrom of=/dev/null bs=2048
  1074.        ^C
  1075.        124+0 records in
  1076.        124+0 records out
  1077.  
  1078.   If this works, then the kernel is communicating with the drive and you
  1079.   can move on to step 5.
  1080.  
  1081.   If not, then a possible cause is the device file. Make sure than the
  1082.   device file in the /dev directory has the correct major and minor
  1083.   numbers as listed previously for your drive type. Check that the
  1084.   permissions on the device file allow reading and writing.
  1085.  
  1086.   A remote possibility is a hardware problem. Try testing the drive
  1087.   under DOS, if possible, to determine if this could be the case.
  1088.  
  1089.   4.6.5.  Step 5: Can you mount the drive?
  1090.  
  1091.   If you can read from the drive but cannot mount it, first verify that
  1092.   you compiled in ISO-9660 file system support by reading
  1093.   /proc/filesystems, as described previously.
  1094.  
  1095.   Make sure you are mounting the drive with the "-t iso9660" and "-r"
  1096.   options and that a known good CD-ROM (not Audio CD) is inserted in the
  1097.   drive. You normally must mount drives as user root.
  1098.  
  1099.   With ATAPI CD-ROM drives you may need to mount specifying a block size
  1100.   of 2048 bytes. Add the option "-o block=2048" to the mount parameters.
  1101.  
  1102.   Make sure that the mount point exists and is an empty directory.
  1103.  
  1104.   If you are automatically mounting the CD-ROM on bootup, make sure that
  1105.   you have correct entries in the /etc/fstab file.
  1106.  
  1107.   If you are running the syslog daemon, there may be error messages from
  1108.   the kernel that you are not seeing. Try using the "dmesg" command:
  1109.        % dmesg
  1110.        SBPCD: sbpcd_open: no disk in drive
  1111.  
  1112.   There may also be errors logged to files in /var/adm, depending on how
  1113.   your system is configured.
  1114.  
  1115.   4.6.6.  Debugging Audio Problems
  1116.  
  1117.   If the drive works with CD-ROMS, but not for playing audio CDs, here
  1118.   are some possible solutions.
  1119.  
  1120.   You need an application program to play audio CDs. Some applications
  1121.   may be broken or may not be compatible with your drive. Try other
  1122.   applications and/or try recompiling them yourself.
  1123.  
  1124.   A few of the CD-ROM drivers do not support playing Audio CDs. Check
  1125.   the README file or source code to see if that is the case.
  1126.  
  1127.   Check if the audio can be played through the headphone jack. If so,
  1128.   then the problem is likely related to your sound card. Use a mixer
  1129.   program to set the input device and volume levels. Mask sure you have
  1130.   installed an audio cable from the CD-ROM drive to the sound card. Make
  1131.   sure that the kernel sound card driver is installed and working (see
  1132.   the Sound HOWTO).
  1133.  
  1134.   4.6.7.  When All Else Fails
  1135.  
  1136.   If you still have problems, here are some final suggestions for things
  1137.   to try:
  1138.  
  1139.   ╖  carefully re-read this HOWTO document
  1140.  
  1141.   ╖  read the references listed at the end of this document, especially
  1142.      the relevant kernel source README files
  1143.  
  1144.   ╖  post a question to one of the comp.os.linux or other usenet
  1145.      newsgroups
  1146.  
  1147.   ╖  send a question to the Linux mailing list
  1148.  
  1149.   ╖  try using the latest Linux kernel
  1150.  
  1151.   ╖  contact your computer dealer
  1152.  
  1153.   ╖  contact the CD-ROM manufacturer
  1154.  
  1155.   ╖  send mail to the author of the relevant kernel driver
  1156.  
  1157.   ╖  send mail to me
  1158.  
  1159.   ╖  fire up emacs and type Esc-x doctor
  1160.  
  1161.   5.  Applications
  1162.  
  1163.   This section briefly lists some of the key applications related to CD-
  1164.   ROM that are available under Linux. Check the Linux Software Map for
  1165.   the latest versions and archive sites.
  1166.  
  1167.   5.1.  Audio CD Players
  1168.  
  1169.   Several programs are available for playing audio CDs, either through a
  1170.   headphone jack or an attached sound card.
  1171.  
  1172.      Workman
  1173.         a graphical player running under X11 and supporting a CD
  1174.         database and many other features
  1175.  
  1176.      WorkBone
  1177.         an interactive text-mode player
  1178.  
  1179.      xcdplayer
  1180.         a simple X11 based player
  1181.  
  1182.      cdplayer
  1183.         a very simple command line based player
  1184.  
  1185.      Xmcd
  1186.         an X11/Motif based player
  1187.  
  1188.      xmitsumi
  1189.         another X11 based player for Mitsumi drives
  1190.  
  1191.      xplaycd
  1192.         another X11 based player, bundled with sound mixer and VU meter
  1193.         programs
  1194.  
  1195.      cdtool
  1196.         command line tools for playing audio CDs
  1197.  
  1198.   Some of these programs are coded to use a specific device file for the
  1199.   CD-ROM (e.g. /dev/cdrom). You may be able to pass the correct device
  1200.   name as a parameter, or you can create a symbolic link in the /dev
  1201.   directory. If sending the CD output to a sound card, you may wish to
  1202.   use a mixer program to set volume settings or select the CD-ROM input
  1203.   for recording.
  1204.  
  1205.   5.2.  Inheriting File System
  1206.  
  1207.   The Inheriting File System (IFS) is a kernel driver that allows
  1208.   mounting multiple file systems at the same point. It is similar to the
  1209.   Translucent File System provided under SunOS. By mounting a hard disk
  1210.   directory over a CD-ROM file system, you can effectively obtain a
  1211.   writable CD-ROM file system.
  1212.  
  1213.   The current version is experimental and was written for the 0.99pl11
  1214.   and pl12 kernels; it may or may not work with more recent revisions.
  1215.   The author is Werner Almesberger (almesber@bernina.ethz.ch).
  1216.  
  1217.   A package called the user file system is another possible method of
  1218.   implementing similar functionality.
  1219.  
  1220.   5.3.  PhotoCD
  1221.  
  1222.   PhotoCDs use an ISO-9660 file system containing image files in a
  1223.   proprietary format. Not all CD-ROM drives support reading PhotoCDs.
  1224.   The hpcdtoppm program by Hadmut Danisch converts PhotoCD files to the
  1225.   portable pixmap format. It can be obtained from
  1226.   <ftp://ftp.gwdg.de/pub/linux/hpcdtoppm> or as part of the PBM
  1227.   (portable bit map) utilities, available on many archive sites (look
  1228.   for "pbm" or "netpbm").
  1229.  
  1230.   The photocd program by Gerd Knorr kraxel@cs.tu-berlin.de can convert
  1231.   PhotoCD images into Targa or Windows and OS/2 bitmap files.
  1232.  
  1233.   The same author has written the program xpcd, an X11-based program for
  1234.   handling PhotoCD images. You can select the images with a mouse,
  1235.   preview the image in a small window, and load the image with any of
  1236.   the five possible resolutions. You can also mark a part of the Image
  1237.   and load only the selected part. Look for these packages at
  1238.   <ftp://ftp.cs.tu-berlin.de/pub/linux/Local/misc/>.
  1239.  
  1240.   The ImageMagick image file manipulation program also supports PhotoCD
  1241.   files. It is available from
  1242.   <ftp://ftp.x.org/contrib/applications/ImageMagick/>.
  1243.  
  1244.   5.4.  Mkisofs
  1245.  
  1246.   Eric Youngdale's mkisofs package allows creating an ISO-9660 file
  1247.   system on a hard disk partition. This can then be used to assist in
  1248.   creating and testing CD-ROM file systems before mastering discs.
  1249.  
  1250.   The tools for actually writing data to writable CD-ROM drives tend to
  1251.   be vendor specific. They also require writing the data with no
  1252.   interruptions, so a multitasking operating system like Linux is not
  1253.   particularly well suited.
  1254.  
  1255.   5.5.  ISO-9660 Utilities
  1256.  
  1257.   These are some utilities for verifying the format of ISO-9660
  1258.   formatted discs; you may find them useful for testing suspect CDs. The
  1259.   package can be found at  <ftp://ftp.cdrom.com/pub/cdrom/ptf/>.  They
  1260.   were written by Bill Siegmund and Rich Morin.
  1261.  
  1262.   6.  Answers to Frequently Asked Questions
  1263.  
  1264.   6.1.  How can a non-root user mount and unmount discs?
  1265.  
  1266.   Some mount commands support the user option. If you make an entry such
  1267.   as the following in /etc/fstab:
  1268.  
  1269.        /dev/sbpcd  /cdrom   iso9660     user,noauto,ro
  1270.  
  1271.   then an ordinary user will be allowed to mount and unmount the drive
  1272.   using these commands:
  1273.  
  1274.   % mount /cdrom
  1275.   % umount /cdrom
  1276.  
  1277.   The disc will be mounted with some options that ensure security (e.g.
  1278.   programs cannot executed, device files are ignored); in some cases
  1279.   this may be too restrictive.
  1280.  
  1281.   Another method is to get the usermount package which allows non-root
  1282.   users to mount and unmount removable devices such as floppies and CD-
  1283.   ROMs, but restricts access to other devices (such as hard disk
  1284.   partitions). It is available on major archive sites.
  1285.  
  1286.   The archive site ftp.cdrom.com has the source file mount.c which
  1287.   allows mounting an unmounting of CD-ROMs (only) by normal users. It
  1288.   runs as a setuid executable.
  1289.  
  1290.   6.2.  Why do I get device is busy when unmounting a CD-ROM?
  1291.  
  1292.   The disc cannot be unmounted if any processes are accessing the drive,
  1293.   including having their default directory set to the mounted
  1294.   filesystem. If you cannot identify the processes using the disc, you
  1295.   can use the fuser command, as shown in the following example.
  1296.  
  1297.        % umount /cdrom
  1298.        umount: /dev/sbpcd: device is busy
  1299.        % fuser -v /cdrom
  1300.        /cdrom:               USER       PID ACCESS COMMAND
  1301.                              tranter     50 ..c..  bash
  1302.  
  1303.   6.3.  How do I export a CD-ROM to other hosts over NFS?
  1304.  
  1305.   You need to add an entry to the /etc/exports file; see the exports(5)
  1306.   man page for details.
  1307.  
  1308.   6.4.  Can I boot Linux from a CD-ROM?
  1309.  
  1310.   The easiest way to boot from CD-ROM is to use a boot floppy. Several
  1311.   of the Linux CD-ROM distributions (e.g. Yggdrasil) include one, or you
  1312.   can use the boot disk(s) from one of the Linux distributions (e.g.
  1313.   Slackware) that includes the necessary CD-ROM drivers for your system.
  1314.  
  1315.   In the future it may be possible to boot from ATAPI CD-ROM drives
  1316.   which have the appropriate ROM BIOS functions.
  1317.  
  1318.   6.5.  How can I read digital data from audio CDs?
  1319.  
  1320.   Heiko Eissfeldt (heiko@colossus.escape.de) and Olaf Kindel have
  1321.   written a utility that reads audio data and saves it as .wav format
  1322.   sound files. The package is called cdda2wav.tar.gz and can be found on
  1323.   sunsite.unc.edu.
  1324.   Because CD-ROM drives are changing very quickly, it is difficult to
  1325.   list which models support reading digital data. You best bet is to get
  1326.   the latest cdda2wav package and read the documentation.
  1327.  
  1328.   For more information on this subject, also see the alt.cd-rom FAQ
  1329.   listed in the references section.
  1330.  
  1331.   6.6.  Why doesn't the find command work properly?
  1332.  
  1333.   On ISO-9660 formatted discs without the Rock Ridge Extensions, you
  1334.   need to add the -noleaf option to the find command.
  1335.  
  1336.   The reason for this is that the number of links for each directory
  1337.   file is not easily obtainable, so it is set to 2. The default behavior
  1338.   for the find program is to look for (i_links - 2) subdirectories in
  1339.   each directory, and it then assumes that the rest are regular files.
  1340.   The -noleaf switch disables this optimization.
  1341.  
  1342.   6.7.  Is the Reveal Multimedia Effects kit CD-ROM supported?
  1343.  
  1344.   (The following was provided by Steve Horne Horne@cmod2.pfc.mit.edu.
  1345.   This only applies to certain Reveal drives; apparently newer ones are
  1346.   made by Panasonic and work fine with the sbpcd driver.)
  1347.  
  1348.   About a year ago I bought a Reveal CD/soundcard kit, and managed to
  1349.   get my particular configuration to work under Linux. I posted the
  1350.   tricks I used to make the thing work; that note got into the CD-ROM
  1351.   HOWTO. Recently I've been receiving a couple of requests a week for
  1352.   help on making Reveal kits work under Linux.
  1353.  
  1354.   I'm no expert. All I did was hammer away at Reveal Tech Support until
  1355.   they gave me the address of the appropriate port, then added the two
  1356.   SOUND-FX lines to the cdu31a driver.  I don't know how to help most of
  1357.   the people who e-mail me.  This is the note I plan to send them. It
  1358.   would be a good idea for you to condense it to the appropriate level
  1359.   for the HOWTO. In particular, I don't want anyone to get the
  1360.   impression that this is a good card to buy for a linux system.  It's
  1361.   not.
  1362.  
  1363.   REVEAL cards -  under Linux
  1364.  
  1365.   Summary:
  1366.  
  1367.   ╖  Don't buy one.
  1368.  
  1369.   ╖  If you already have one, and have a Sony drive, you can make the CD
  1370.      work.
  1371.  
  1372.   ╖  If you don't have a Sony drive, you can probably make the drive
  1373.      work, but I'm not certain, since I don't have that hardware.
  1374.  
  1375.   ╖  Sound support is poor. If Aztech would release programming
  1376.      information, there would be some hope.
  1377.  
  1378.   Fine print:
  1379.  
  1380.   If your kit has a Sony, the cdu31a driver will work for you.  You need
  1381.   a kernel with cdu31a support compiled in. The following is from the
  1382.   comments in the cdu31a source code:
  1383.  
  1384.         * WARNING -    All autoprobes have been removed from the driver.
  1385.         *              You MUST configure the CDU31A via a LILO config
  1386.         *              at boot time or in lilo.conf.  I have the
  1387.         *              following in my lilo.conf:
  1388.         *
  1389.         *                append="cdu31a=0x1f88,0,PAS"
  1390.         *
  1391.         *              The first number is the I/O base address of the
  1392.         *              card.  The second is the interrupt (0 means none).
  1393.         *              The third should be "PAS" if on a Pro-Audio
  1394.         *              spectrum, or nothing if on something else.
  1395.  
  1396.   I expect the appropriate line for a Reveal card to be
  1397.  
  1398.        append="cdu31a=0x654,0"
  1399.  
  1400.   Since I don't consistently use LILO, I have just put the autoprobing
  1401.   back in by deleting the conditional stuff, and put my address first.
  1402.   (The file is  </usr/src/linux/drivers/cdrom/cdu31a.c>; search for the
  1403.   string "cdu31a_addresses" to find the spot.)
  1404.  
  1405.   THIS WILL NOT WORK IF YOUR KIT DOESN'T HAVE A SONY DRIVE!  (I don't
  1406.   know that for sure, but I'd be very surprised if it did.)
  1407.  
  1408.   By analogy to the Sony case, I expect that if you have a Panasonic or
  1409.   Mitsumi drive, you need to obtain from Reveal Tech Support the base
  1410.   register for your CD-ROM type, then use the appropriate driver. (I
  1411.   don't know if the sbpcd driver will work; it might. No matter what,
  1412.   you need those addresses.)  I don't know if the "append=..." will work
  1413.   with the other drivers.
  1414.  
  1415.   You can't patch the driver or lilo.conf until you have some sort of
  1416.   system up.  If you are starting from scratch (DOS only, no Linux) here
  1417.   are a few things to try --
  1418.  
  1419.   1. Copy the installation files to a DOS partition and install from
  1420.      there.  This is foolproof but will require up to 90 MB of space in
  1421.      your DOS partition.  Once the system is up you can use the above
  1422.      tricks.  It's possible to bootstrap yourself up by installing only
  1423.      the A, AP, and D series (if you are using Slackware) plus a kernel
  1424.      source tree (Q ?).  This will give you the tools to patch and build
  1425.      a kernel.
  1426.  
  1427.   2. If you either have a Sony CD or are otherwise confident, have a
  1428.      friend make you a patched kernel -- (autoprobes on, your address
  1429.      first.)  Rdev it in the usual way:
  1430.  
  1431.        rdev  /dev/fd0 /dev/fd0                 ; root=floppy
  1432.        rdev -r /dev/fd0 1440                   ; ramdisk
  1433.        rdev -t /dev/fd0 -3                     ; prompt for screen mode
  1434.  
  1435.   Then use it to boot the installation root-disk. Make a mount point for
  1436.   the CD that won't interfere with the installation procedure:
  1437.  
  1438.        # mkdir /cd
  1439.        # mount -r -t iso9660 /dev/fd0 /cd
  1440.  
  1441.   Then use the "install from mounted directory" option. Of course, the
  1442.   kernels in the distribution won't work for you; copy your custom ker¡
  1443.   nel instead.
  1444.  
  1445.   3. It's just barely possible (I haven't checked) that the new LOADLIN
  1446.      routine, which boots Linux from DOS, might save you. I believe it's
  1447.      possible to use it like LILO to pass data to the kernel, so it
  1448.      might work to boot DOS, then boot Linux, passing the hardware
  1449.      addresses to the driver via LOADLIN. I've never tried this.
  1450.  
  1451.   Sound support:
  1452.  
  1453.   This card (isc-400) isn't well supported by Linux, which is a shame
  1454.   because it seems to be a nice piece of hardware. The card will produce
  1455.   output in the 8-bit SB mode. I haven't made the mixer work, so
  1456.   recording doesn't work properly either. The MSS mode doesn't have an
  1457.   IRQ; I don't know how to tell the driver that, so that doesn't work. I
  1458.   haven't seen the AdLib compatibility work.
  1459.  
  1460.   I have tried, and at least one other person has tried, to obtain
  1461.   programming information for the native mode(s) of the card. After many
  1462.   hours on the phone I was referred to Singapore. I passed at that
  1463.   point. When I get serious about sound again, I'll buy a genuine
  1464.   SoundBlaster card.
  1465.  
  1466.   6.8.  Does Linux support any recordable CD-ROM drives?
  1467.  
  1468.   According to Adam J. Richter, adam@yggdrasil.com:
  1469.  
  1470.   The Yggdrasil distribution can drive a Philips CD writer with an
  1471.   Adaptec 154x SCSI controller. I'm not sure which other SCSI
  1472.   controllers, if any, will work. You can use mkisofs to make an
  1473.   ISO-9660 filesystem and cdwrite to write it to the CD. If you want us
  1474.   to help you set this up, you can call us on our 900 technical support
  1475.   number: 1-900-446-6075 extension 835 (US$2.95/minute, U.S. only).
  1476.  
  1477.   George Moody, george@hstbme.mit.edu reports:
  1478.  
  1479.   I use `mkisofs' (from tsx-11.mit.edu and other standard sources) and
  1480.   `cdwrite' (from ftp.yggdrasil.com) to write CDs using the following
  1481.   configuration:
  1482.  
  1483.   ╖  Philips CDD522 CD recorder
  1484.  
  1485.   ╖  Seagate ST15150N hard disk (4.1 GB `Barracuda' drive, not an AV
  1486.      drive)
  1487.  
  1488.   ╖  NCR B355 PCI SCSI controller (uses 53C810, praised as cheap and
  1489.      fast in the PCI-HOWTO)
  1490.  
  1491.   The hard disk and the CD recorder are on the same SCSI bus.  My system
  1492.   is a 100 MHz Pentium running Linux 1.2.12.  I'm using the standard NCR
  1493.   PCI-SCSI driver, not one of the new alpha versions that are said to
  1494.   support disconnect/reconnect.  I've been able to make CDs at 2x speed
  1495.   from image files in both ext2fs and MSDOS file systems (I haven't
  1496.   tried copying from a raw disk device, since I don't have a partition
  1497.   to spare).  The only problem is that occasionally the system gets
  1498.   wedged *after* `fixating' the CD; when this happens, I reboot the
  1499.   system and everything's OK, including the CD I've just written.  I run
  1500.   `cdwrite' as root, sometimes while running X11 and a few low-load X11
  1501.   clients, but I try not to do anything else with the system while
  1502.   writing a CD.
  1503.  
  1504.   Also see the Linux CD-Writer mini-HOWTO document, found at
  1505.   <ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/mini/CD-Writer> or
  1506.   <http://sunsite.unc.edu/mdw/HOWTO/CD-Writer.html>.
  1507.  
  1508.   6.9.  Why do I get mount: Read-only file system when mounting a CD-
  1509.   ROM?
  1510.  
  1511.   CD-ROM is a read-only media. With older kernels you could mount a CD-
  1512.   ROM for read/write; attempts to write data to the CD would not
  1513.   generate any errors. As of kernel version 1.1.33 this was corrected so
  1514.   that CD-ROMs must be mounted read only (e.g. using the -r option to
  1515.   mount).
  1516.  
  1517.   6.10.  Why does the disc tray open when I shut down the system?
  1518.  
  1519.   As of the 1.1.38 kernel, the sbpcd driver ejects the CD when it is
  1520.   unmounted. If you shut down the system, a mounted CD will be
  1521.   unmounted, causing it to eject.
  1522.  
  1523.   This feature is for convenience when changing discs. If the tray is
  1524.   open when you mount or read a CD, it will also automatically be
  1525.   closed.
  1526.  
  1527.   I found that this caused problems with a few programs (e.g. cdplay and
  1528.   workbone). As of the 1.1.60 kernel you can control this feature under
  1529.   software control. A sample program is included in the README.sbpcd
  1530.   file (or use the eject program).
  1531.  
  1532.   6.11.  I have a "special" CD that can't be mounted
  1533.  
  1534.   The "special" CD is likely an XA disc (like all Photo CDs or "one-
  1535.   offs" created using CD-R drives). Most of the Linux kernel CD-ROM
  1536.   drivers do not support XA discs, although you may be able to find a
  1537.   patch to add support on one of the archive sites.
  1538.  
  1539.   The sbpcd driver does support XA. If you are using this driver you can
  1540.   determine if the disc is XA using the following procedure: go into the
  1541.   file sbpcd.c and enable the display of the "Table of Contents"
  1542.   (DBG_TOC). Build and install the new kernel and boot from it. During
  1543.   each mount the TOC info will be written (either to the console or to a
  1544.   log file). If the first displayed value in the TOC header line is
  1545.   "20", then it is an XA disc. That byte is "00" with normal disks. If
  1546.   the TOC display shows different tracks, that is also a sign that it is
  1547.   an XA disc.
  1548.  
  1549.   (thanks to Eberhard Moenkeberg for the above information)
  1550.  
  1551.   Other possibilities for unreadable CDs are:
  1552.  
  1553.   1. The disc doesn't use an ISO-9660 file system (e.g. some use SunOS)
  1554.  
  1555.   2. It is an audio CD
  1556.  
  1557.   3. The CD is damaged or defective
  1558.  
  1559.   4. You put it in the drive upside down :-)
  1560.  
  1561.   6.12.  Why does the drive light flash on my CDU-33 drive?
  1562.  
  1563.   This is normal and was added in a recent revision of the driver. It
  1564.   flashes the drive light when a CD is mounted (it's not a bug, it's a
  1565.   feature...).
  1566.  
  1567.   6.13.  Do multi-platter CD-ROM drives work with Linux?
  1568.  
  1569.   Several users have reported success with SCSI multi-disc CD-ROM
  1570.   changers.  You probably need to enable the "Probe all LUNs on each
  1571.   SCSI device" kernel configuration option. At least one user also had
  1572.   to increase a SCSI timeout value in the kernel driver. The Nakamichi
  1573.   MBR-7 7 disc changer and Pioneer 12 disc changer have been reported to
  1574.   work.
  1575.  
  1576.   EIDE/ATAPI multi-disc changers are also available. The 2.0 kernel has
  1577.   rudimentary support for some drives using the CDROMLOADFROMSLOT ioctl
  1578.   function. The IDE-CD kernel driver documentation file includes source
  1579.   code for a program to select changer slots.
  1580.  
  1581.   6.14.  I get "/cdrom: Permission denied" errors
  1582.  
  1583.   Some CDs have file permissions that only allow user root to read them.
  1584.   The March 1995 InfoMagic CD set is one example.
  1585.  
  1586.   The following patch, courtesy of Christoph Lameter
  1587.   (clameter@waterf.org) patches the kernel to get around this problem.
  1588.  
  1589.   From: clameter@waterf.org (Christoph Lameter)
  1590.   Newsgroups: comp.os.linux.setup
  1591.   Subject: Infomagic Developers Set: Fix for CD-Rom permissions
  1592.   Date: 12 Apr 1995 20:32:03 -0700
  1593.   Organization: The Water Fountain - Mining for streams of Living Water
  1594.   NNTP-Posting-Host: waterf.org
  1595.   X-Newsreader: TIN [version 1.2 PL2]
  1596.  
  1597.   The March 1995 Edition of the Infomagic Developers CD-ROM Set has
  1598.   problems because the information stored in the root directory
  1599.   permissions is causing the following problems with using the CDs
  1600.  
  1601.   1. Disc1 will always have the owner/group of 5101/51 and has write
  1602.   access allowed (?)
  1603.  
  1604.   2. Disc2 and 3 have rwx set for root and no rights at all for any
  1605.   other group/user. These discs cannot be accessed from any user other
  1606.   than root! I run a BBS and I need to make them accessible for download
  1607.   by others.
  1608.  
  1609.   I have seen several fixes to this problem already floating
  1610.   around. Trouble is that these fixes usually change the rights for ALL
  1611.   directories on the CD. This fix here changes ONLY the rights for the
  1612.   root directory of the CD-Rom. If you want to run parts of Linux
  1613.   directly off the CD you might run into trouble if all directories are
  1614.   readable for everyone and if they are all owned by root.
  1615.  
  1616.   This fix will set the rights for the root directory to r-xr-xr-x and
  1617.   the owner/group to the values indicated in the uid and gid options to
  1618.   the mount command.
  1619.  
  1620.   To apply:
  1621.    cd /usr/src/linux/fs/isofs
  1622.    patch <**THIS MESSAGE**
  1623.  
  1624.   and recompile kernel (you may have to fix up the patch by hand
  1625.   depending on your kernel version).
  1626.  
  1627.   This fix should probably be incorporated into the kernel. What business
  1628.   does data on a CD have to mess around with the permissions/owners of the
  1629.   mount-point anyways?
  1630.  
  1631.   --- inode.c.ORIG        Wed Apr 12 17:24:36 1995
  1632.   +++ inode.c     Wed Apr 12 17:59:12 1995
  1633.   @@ -552,7 +552,15 @@
  1634.       these numbers in the inode structure. */
  1635.  
  1636.           if (!high_sierra)
  1637.   -         parse_rock_ridge_inode(raw_inode, inode);
  1638.   +       {  parse_rock_ridge_inode(raw_inode, inode);
  1639.   +           /* check for access to the root directory rights/owner CL */
  1640.   +          if((inode->i_sb->u.isofs_sb.s_firstdatazone) == inode->i_ino)
  1641.   +           { /* Change owner/rights to the ones demanded by the mount command */
  1642.   +             inode->i_uid = inode->i_sb->u.isofs_sb.s_uid;
  1643.   +             inode->i_gid = inode->i_sb->u.isofs_sb.s_gid;
  1644.   +            inode->i_mode = S_IRUGO | S_IXUGO | S_IFDIR;
  1645.   +           }
  1646.   +        }
  1647.  
  1648.    #ifdef DEBUG
  1649.           printk("Inode: %x extent: %x\n",inode->i_ino, inode->u.isofs_i.i_first_extent);
  1650.   @@ -805,4 +813,3 @@
  1651.    }
  1652.  
  1653.    #endif
  1654.   -
  1655.   6.15.  How do you pronounce "Matsushita" ?
  1656.  
  1657.   I'm told that the correct pronunciation it something like MAT-SOOSH-
  1658.   TA.
  1659.  
  1660.   6.16.  How do I interpret IDE CD kernel error messages?
  1661.  
  1662.   What does it mean when I get a kernel message from the IDE CD-ROM
  1663.   driver like "hdxx: code: xx key: x asc: xx ascq: x"?
  1664.  
  1665.   This is an status/error message from the IDE CD-ROM drive. By default
  1666.   the IDECD driver prints out the raw information instead of wasting
  1667.   kernel space with error messages.  You can change the default to
  1668.   display the actual error messages by going into
  1669.   </usr/src/linux/drivers/block/ide-cd.c> and changing the value of
  1670.   VERBOSE_IDE_CD_ERRORS to 1.
  1671.  
  1672.   6.17.  Does Linux support Plug and Play devices?
  1673.  
  1674.   Linux does not yet fully support Plug and Play devices, but it is
  1675.   being worked on. In the mean time some users have reported success by
  1676.   either disabling the Plug and Play options in their BIOS, or by
  1677.   initializing the devices under Windows 95 before soft booting Linux.
  1678.  
  1679.   6.18.  How can I tell what speed CD-ROM I have?
  1680.  
  1681.   Here's one way. This command measures how long is takes to read 1500K
  1682.   of data from CD:
  1683.  
  1684.        % time -p dd if=/dev/cdrom of=/dev/null bs=1k count=1500
  1685.        1500+0 records in
  1686.        1500+0 records out
  1687.        real 5.24
  1688.        user 0.03
  1689.        sys 5.07
  1690.  
  1691.   The transfer rate of single speed drives is 150 kilobytes per second,
  1692.   which should take about 10 seconds. At double speed it would take five
  1693.   seconds, quad speed would take 2.5, etc...
  1694.  
  1695.   The "sys" time above is probably the best number to look at -- in this
  1696.   case it indicates a double speed drive. You can increase the amount of
  1697.   data transferred to get a more accurate value (in case you were
  1698.   wondering, the data does not get cached).
  1699.  
  1700.   6.19.  My CD-ROM stopped working after Linux was installed
  1701.  
  1702.   The usual symptom is that the boot disk used to initially install
  1703.   Linux recognized your CD-ROM drive, but after Linux was installed on
  1704.   the hard drive or floppy and rebooted it no longer recognizes the CD-
  1705.   ROM.
  1706.  
  1707.   The most common reason for this problem is that with most Linux
  1708.   distributions the kernel that is installed on your hard drive (or
  1709.   floppy) is not necessarily the same one that was on your boot disk.
  1710.   You selected a boot disk that matched your CD-ROM hardware, while the
  1711.   kernel you installed is a "generic" kernel that is lacking CD-ROM
  1712.   support. You can verify this by following the troubleshooting
  1713.   guidelines discussed previously in this document (e.g. start by
  1714.   checking /proc/devices).
  1715.  
  1716.   The solution is to recompile the kernel, ensuring that the drivers for
  1717.   your CD-ROM drive and any others that are needed (e.g. SCSI
  1718.   controller, ISO-9660 file system) are included. See the Kernel HOWTO
  1719.   <http://sunsite.unc.edu/mdw/HOWTO/Kernel-HOWTO.html> if you don't know
  1720.   how to do this.
  1721.  
  1722.   If you passed any command line options to the boot disk (e.g.
  1723.   "hdc=cdrom") you need to add these to your boot program configuration
  1724.   file (typically /etc/lilo.conf).
  1725.  
  1726.   7.  References
  1727.  
  1728.   I have already mentioned the README files, typically installed in
  1729.   </usr/src/linux/Documentation/cdrom/>. These can be a gold mine of
  1730.   useful information.
  1731.  
  1732.   The following usenet FAQs are posted periodically to news.answers and
  1733.   archived at internet FTP sites such as  <ftp://rtfm.mit.edu/>:
  1734.  
  1735.   ╖  alt.cd-rom FAQ
  1736.  
  1737.   ╖  comp.periphs.scsi FAQ
  1738.  
  1739.   ╖  Enhanced IDE/Fast-ATA/ATA-2 FAQ
  1740.  
  1741.   Several other Linux HOWTOs have useful information relevant to CD-ROM:
  1742.  
  1743.   ╖  SCSI HOWTO <http://sunsite.unc.edu/mdw/HOWTO/SCSI-HOWTO.html>
  1744.  
  1745.   ╖  Hardware Compatibility HOWTO
  1746.      <http://sunsite.unc.edu/mdw/HOWTO/Hardware-HOWTO.html>
  1747.  
  1748.   ╖  Sound HOWTO <http://sunsite.unc.edu/mdw/HOWTO/Sound-HOWTO.html>
  1749.  
  1750.   ╖  Kernel HOWTO <http://sunsite.unc.edu/mdw/HOWTO/Kernel-HOWTO.html>
  1751.  
  1752.   ╖  Distribution HOWTO <http://sunsite.unc.edu/mdw/HOWTO/Distribution-
  1753.      HOWTO.html>
  1754.  
  1755.   At least a dozen companies sell Linux distributions on CD-ROM; most of
  1756.   them are listed in the Distribution HOWTO.
  1757.  
  1758.   The following Usenet news groups cover CD-ROM related topics:
  1759.  
  1760.   ╖  comp.publish.cdrom.hardware
  1761.  
  1762.   ╖  comp.publish.cdrom.multimedia
  1763.  
  1764.   ╖  comp.publish.cdrom.software
  1765.  
  1766.   ╖  comp.sys.ibm.pc.hardware.cd-rom
  1767.  
  1768.   ╖  alt.cd-rom
  1769.  
  1770.   ╖  alt.cd-rom.reviews
  1771.  
  1772.   The comp.os.linux newsgroups are also good sources of Linux specific
  1773.   information.
  1774.  
  1775.   There is a large archive of CD-ROM information and software at
  1776.   <ftp://ftp.cdrom.com/pub/cdrom/>.
  1777.  
  1778.   A FAQ document on IDE and ATA devices can be found at
  1779.   <ftp://rtfm.mit.edu/pub/usenet/news.answers/pc-hardware-faq/enhanced-
  1780.   IDE/> and at  <http://www.seagate.com/techsuppt/faq/faqlist.html>.
  1781.  
  1782.   Western Digital, the company that started the IDE protocol, has
  1783.   information available on the IDE protocol available on their FTP site
  1784.   at  <ftp://fission.dt.wdc.com/pub/standards/atapi>.
  1785.  
  1786.   A Web site dedicated to multimedia can be found at
  1787.   <http://viswiz.gmd.de/MultimediaInfo/>. Creative Labs has a Web site
  1788.   at  <http://www.creaf.com/>.
  1789.  
  1790.   The Linux Documentation Project has produced several books on Linux,
  1791.   including Linux Installation and Getting Started. These are freely
  1792.   available by anonymous FTP from major Linux archive sites or can be
  1793.   purchased in hardcopy format.
  1794.  
  1795.   The Linux Software Map (LSM) is an invaluable reference for locating
  1796.   Linux software. The LSM can be found on various anonymous FTP sites,
  1797.   including  <ftp://sunsite.unc.edu/pub/Linux/docs/LSM.gz/>.
  1798.  
  1799.   The Linux mailing list has a number of "channels" dedicated to
  1800.   different topics. To find out how to join, send a mail message with
  1801.   the word "help" as the message body to majordomo@vger.rutgers.edu
  1802.   (Note: at time of writing these mailing lists were severely overloaded
  1803.   and a replacement was being sought).
  1804.  
  1805.   Finally, a shameless plug: If you want to learn a lot more about
  1806.   multimedia under Linux (especially CD-ROM and sound card applications
  1807.   and programming), check out new my book Multimedia on Linux published
  1808.   by O'Reilly and Associates ( <http://www.ora.com/>). It should be
  1809.   available in the September 1996 time frame.
  1810.  
  1811.